package org.example.manySheetExcel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.example.entity.ExcelVerifyInfo;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author 望轩
 * @createDate 2025/8/20 15:13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RegionDTO extends ExcelVerifyInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    @Excel(name = "国家/地区", orderNum = "0")
    @NotBlank(message = "国家/地区不能为空")
    private String name;

    @Excel(name = "国家/地区(中)", orderNum = "1")
    @NotBlank(message = "国家/地区(中)不能为空")
    private String nameCn;

    @Excel(name = "Code", orderNum = "2")
    private String code;

    @Excel(name = "区域层级", orderNum = "3")
    private int regionLevel;

    @Excel(name = "类型", orderNum = "4")
    @NotBlank(message = "类型不能为空")
    private String type;
}
